package nfwx.analytics;

/**
 * 采集参数：视频通用事件（load,seek, buffer)
 */

public class GrabVideoCommonEvent extends GrabVideoEvent {
    public final GrabNumber loadTime; //加载花费的时间
    public final GrabBoolean fin; //操作是否完成
    public final GrabBoolean exit; //是否加载完成前结束会话
    public final GrabBoolean noSignal; //是否无信号
    public final GrabString errcode; //播放错误码, 如果加载出错
    public final GrabString msg; //播放错误描述， 如果加载出错
    public final GrabString status; //播放器状态

    public GrabVideoCommonEvent(String type)
    {
        super(type);
        loadTime = (GrabNumber)extra.defineProperty("loadTime", new GrabNumber(true));
        fin = (GrabBoolean) extra.defineProperty("fin", new GrabBoolean(true));
        exit = (GrabBoolean) extra.defineProperty("exit", new GrabBoolean(false));
        noSignal = (GrabBoolean) extra.defineProperty("noSignal", new GrabBoolean(false));
        errcode = (GrabString) extra.defineProperty("errcode", new GrabString(false));
        msg = (GrabString) extra.defineProperty("msg", new GrabString(false));
        status = (GrabString) extra.defineProperty("status", new GrabString(false));
    }
}
